package com.chushouya.manager.dto.admin.partner;

import com.general.framework.core.enums.StatusEnum;
import com.general.framework.core.lang.Dates;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("合作商用户列表")
public class PartnerUserListDTO {

    @ApiModelProperty("商家员工ID")
    private Long partnerUserId;

    @ApiModelProperty("登录账号")
    private String userName;

    @ApiModelProperty("员工姓名")
    private String nickName;

    @ApiModelProperty("商家主账号")
    private Boolean isMaster;

    @ApiModelProperty("员工手机号")
    private String phone;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("状态")
    private String statusDesc;

    @ApiModelProperty("partnerId")
    private Long partnerId;

    @ApiModelProperty("商家名称")
    private String partnerName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = Dates.FMT_FULL_TIME)
    private Date createTime;

    public String getStatusDesc() {
        return StatusEnum.getDesc(this.status);
    }

}
